<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Chat Application</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            background-color: #d9f3d9;
            /* 因为 header 固定在顶部，给 body 顶部留出一定的间距 */
            padding-top: 50px;
        }

        #logo {
            cursor: pointer;
        }

        #logo img {
            max-width: 300px;
            height: auto;
        }

        /* header样式 */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: #333;
            color: white;
            text-align: center;
            padding: 15px 0;
            z-index: 1000; /* 确保 header 在其他元素之上 */
        }

        /* 导航菜单样式 */
        nav ul {
            list-style-type: none;
            margin: 0;
            padding: 0;
        }

        nav ul li {
            display: inline;
            margin: 0 20px;
        }

        nav ul li a {
            color: white;
            text-decoration: none;
        }

        nav ul li a:hover {
            text-decoration: underline;
        }
    </style>
</head>

<body>
<!-- 头部 -->
<header>
    <nav>
        <ul>
            <li><a href="#">首页</a></li>
            <li><a href="#">关于</a></li>
            <li><a href="#">联系</a></li>
        </ul>
    </nav>
</header>
<!-- 展示 logo 并添加点击事件 -->
<div id="logo">
    <img src="images/answer.png" alt="Project Logo" onclick="window.location.href='chat.html';">
</div>
</body>

</html>